package edu.spec.wfl.week05.class2;

public class Mammal{
    private String name;
    private String gender;
    private int age;
    private String food;
    public Mammal(){}

    public 	Mammal(String name,String gender,int age,String food){
        this.name=name;
        this.gender=gender;
        this.age=age;
        this.food=food;
    }

    public void born(){
        System.out.println("I was born with name"+this.name);
    }
    public void eat(){
        System.out.println("I am"+name+",I eat"+food);
    }
    public void milk(){
        System.out.println("I drink milk when I was young!");
    }
    public void breed(){
        System.out.println("I breed fast!");
    }

    public static void main(String[] args){
        Mammal cat = new Mammal("mm","flmal",2,"ml");
        cat.born();
        cat.eat();
        cat.milk();
        cat.breed();
    }
}
